package cn.qzuie.smart.module.dorm.controller.admin.bills.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 账单新增/修改 Request VO")
@Data
public class BillsSaveReqVO {

    @Schema(description = "账单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31645")
    private Long id;

    @Schema(description = "宿舍ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24968")
    @NotNull(message = "宿舍ID不能为空")
    private Long dormitoryId;

    @Schema(description = "能源账单集合包括照明，空调，水", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "能源账单集合包括照明，空调，水不能为空")
    private Long energyUsageIds;

    @Schema(description = "账单日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "账单日期不能为空")
    private LocalDateTime billDate;

    @Schema(description = "总金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "总金额不能为空")
    private Double totalAmount;

    @Schema(description = "余额")
    private Double balance;

    @Schema(description = "欠费", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "欠费不能为空")
    private Double fee;

    @Schema(description = "截止日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "截止日期不能为空")
    private LocalDateTime dueDate;

}